package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

type UserConsume struct {
	Id      int       `json:"id" gorm:"primaryKey;autoIncrement"`
	Uid     int       `json:"uid"`     //int(10) DEFAULT NULL COMMENT '主播id',
	Consume int       `json:"consume"` //int(10) DEFAULT '0' COMMENT '当日消费金币',
	Date    time.Time `json:"date"`    //date DEFAULT NULL COMMENT '日期 2020-02-02',
}

func (UserConsume) TableName() string {
	return fmt.Sprintf("%suser_consume", models.Prefix)
}
